package com.woniuxy.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.R;
import com.woniuxy.entity.AssetInfo;
import com.woniuxy.service.AssetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AssetController
 * @Description TODO
 * @Author LI.hh
 * @Date 2022/9/20 15:12
 * @Version 1.0
 */
@RestController
public class AssetController {

    @Autowired
    AssetService assetService;

    /**
     * 添加资产信息
     * @param assetInfo
     * @return
     */
    @PostMapping("/addAsset")
    public AjaxResult addAsset(@RequestBody AssetInfo assetInfo){
        return  assetService.addAsset(assetInfo);
    }
}
